export default defineNuxtRouteMiddleware((to, from) => {
  debugger;
  const user = () => useState("user");
  if (null == user) {
    if (to.path !== "/login") {
      return navigateTo("/login");
    } else {
      return;
    }
  }
  // todo 校验权限
});
